adb connect xxx.xxx.xxx.xxx adb shell settings put global captive_portal_detection_enabled 1 adb shell settings put global captive_portal_mode 1 adb shell settings put global captive_portal_use_https 0 adb shell settings put global captive_portal_server connect.rom.miui.com adb shell settings put global captive_portal_http_url http://connect.rom.miui.com/generate_204 adb shell settings put global captive_portal_https_url https://connect.rom.miui.com/generate_204